Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue #49: Adding accesibility to checkbox,button as well a radio button. #50

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

negxative
Copy link

Issue: Not having accessibility feature in checkboxes ,buttons as well as radio buttons.

I wanted to contribute to the code as per what I've checked the keyboard accessibility was totally working for checkbox and buttons but there was no outline appearing for the same .
In case of radio buttons even though u could toggle a radio with tab and select but after it you cannot move further to select next radio button.

solutions:
1-> Solved for buttons by simply providing an outline: "auto" when we focus into the component and clicking on space was already enabled.
2-> For checkboxes as we are hiding original HTML checkbox but on pressing the tab or changing the value the focus goes to the original checkbox element because of which the outline visible outside the checkbox component on focus gets removed for this I added a ref to html checkbox to be controlled from our custom component
3-> For radio buttons I simply added tab indexing and accessibility

@negxative negxative requested a review from shanpriyan October 24, 2023 09:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants